package game.com.game;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by maizhipeng on 2017/4/20.
 */

public class World {

    public interface  IWorldListener{

        void onTime(long time);
    }

    private static World sWorld;

    public static World getInstance() {
        if (sWorld == null) {
            sWorld = new World();
        }

        return sWorld;
    }
    private List<IWorldListener> mIWorldListeners =new ArrayList<>();

    public long getTime(){
        return System.currentTimeMillis();
    }

    public void start(){


    }
    public void addIWorldListener(IWorldListener listener){

    }
    public void removeIWorldListener(IWorldListener listener){

    }

    private void notifyIWordListener(long time){

    }
}
